package cn.edu.scau.cmi.dengzejun.chapter06;

public class Student {
	int number;
	String name;
	Student(){
		return;
	}
	
	Student(int number,String name){
		this.name=name;
		this.number=number;
		System.out.println("My name is "+name+" My student's number is "+number);
		return;
	}
	
	public double area(Geometry ...p) {
		double sum=0;
		for (int i=0;i<p.length;i++) {
			sum+=p[i].GetArea();
		}
		return sum;
	}
}
